import { createRouter, createWebHistory } from 'vue-router'
import Foo from '../Foo.vue'

const routes = [
  {path: '/', component: Foo},
  {path: '/child', component: ()=> import('./Child.vue')}
]

export default createRouter({
  history: createWebHistory(),
  routes
})